package com.wu.framework.upms.adapter;

import com.wu.framework.upms.api.DictionaryApi;
import com.wu.framework.inner.layer.data.ConvertApi;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ConvertApiRpc implements ConvertApi {

    private final DictionaryApi dictionaryApi;

    public ConvertApiRpc(DictionaryApi dictionaryApi) {
        this.dictionaryApi = dictionaryApi;
    }


    @Override
    public Map<String, Map<String, String>> getConvertDataByItems(List<String> convertItems, boolean order) {
        return dictionaryApi.getConvertDataByItems(convertItems, order);
    }
}
